import java.io.File;

public class Main {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\25314\\Desktop\\第一个项目配置文件");

        if(file.isDirectory()){
            File[] files = file.listFiles();
            for(File file1 : files){
                System.out.println(file1.getParent() + " : " + file1.getName());
            }
        }

    }
}
